import request from '@/utils/request'

// 查询健身知识信息列表
export function listFitnessknowledge(query) {
  return request({
    url: '/system/fitnessknowledge/list',
    method: 'get',
    params: query
  })
}

// 查询健身知识信息详细
export function getFitnessknowledge(knowledgeId) {
  return request({
    url: '/system/fitnessknowledge/' + knowledgeId,
    method: 'get'
  })
}

// 新增健身知识信息
export function addFitnessknowledge(data) {
  return request({
    url: '/system/fitnessknowledge',
    method: 'post',
    data: data
  })
}

// 修改健身知识信息
export function updateFitnessknowledge(data) {
  return request({
    url: '/system/fitnessknowledge',
    method: 'put',
    data: data
  })
}

// 删除健身知识信息
export function delFitnessknowledge(knowledgeId) {
  return request({
    url: '/system/fitnessknowledge/' + knowledgeId,
    method: 'delete'
  })
}
